package QC.MessageBox.beans;

import QC.MessageBox.annotation.APPTable;

/**
 * Created by Andaren on 2017/5/4.
 * Used for: 业务客服（app端用户）
 */
@APPTable(table = "t_app_user")
public class AppUser {

    @APPTable(column = "id", isId = true)
    private Long id;        // 客服表主键

    @APPTable(column = "talkid")
    private String talkId;  // app接入客服的talkId-(融云消息中的userid)

    @APPTable(column = "wx_openid")
    private String openId;  // 微信用户ID（可以多个微信用户对应一个客服）

    @APPTable(column = "customer_server_id")
    private String csId;    // 在app数据库中的客服ID

    @APPTable(column = "status")
    private String status;  // 客服状态

    @APPTable(column = "createTime")
    private String createTime;  //  创建时间

    @APPTable(column = "nickname")
    private String nickname;    // 客服昵称

    @APPTable(column = "channel_type")
    private Integer channelType;// 客服渠道类型（0：微信，1：微博，2：其他）

    @APPTable(column = "pull_black")
    private Integer pullBlack;    // 该粉丝是否被拉黑（0：未拉黑，1：已拉黑）

    public Long getId() {
        return id;
    }

    public AppUser setId(Long id) {
        this.id = id;
        return this;
    }

    public String getTalkId() {
        return talkId;
    }

    public AppUser setTalkId(String talkId) {
        this.talkId = talkId;
        return this;
    }

    public String getOpenId() {
        return openId;
    }

    public AppUser setOpenId(String openId) {
        this.openId = openId;
        return this;
    }

    public String getCsId() {
        return csId;
    }

    public AppUser setCsId(String csId) {
        this.csId = csId;
        return this;
    }

    public String getStatus() {
        return status;
    }

    public AppUser setStatus(String status) {
        this.status = status;
        return this;
    }

    public String getCreateTime() {
        return createTime;
    }

    public AppUser setCreateTime(String createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getNickname() {
        return nickname;
    }

    public AppUser setNickname(String nickname) {
        this.nickname = nickname;
        return this;
    }

    public Integer getPullBlack() {
        return pullBlack;
    }

    public AppUser setPullBlack(Integer pullBlack) {
        this.pullBlack = pullBlack;
        return this;
    }

    public Integer getChannelType() {
        return channelType;
    }

    public AppUser setChannelType(Integer channelType) {
        this.channelType = channelType;
        return this;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("AppUser{");
        sb.append("id=").append(id);
        sb.append(", talkId='").append(talkId).append('\'');
        sb.append(", openId='").append(openId).append('\'');
        sb.append(", csId='").append(csId).append('\'');
        sb.append(", status='").append(status).append('\'');
        sb.append(", createTime='").append(createTime).append('\'');
        sb.append(", nickname='").append(nickname).append('\'');
        sb.append(", channelType=").append(channelType);
        sb.append(", pullBlack=").append(pullBlack);
        sb.append('}');
        return sb.toString();
    }
}
